package com.aliang.shopping.service;

import com.aliang.shopping.model.po.Contact;
import com.aliang.shopping.model.vo.chat.ContactVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author ShiBaLover
* @description 针对表【contact(联系人表)】的数据库操作Service
* @createDate 2024-10-28 09:35:41
*/
public interface ContactService extends IService<Contact> {

    List<ContactVO> getContactList(String keyword);

    /**
     * 更新联系人信息
     *
     * @param contact
     * @param online
     * @return
     */
    Boolean updateContactById(ContactVO contact, Long userId, boolean online);

    Integer getUnreadNum(Long userId);
}
